<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath()+"/";
%>
<!DOCTYPE html>
<html>

<head>
    <base href="<%=path%>">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=320, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <title>在线申请信用贷款</title>
    <link rel="stylesheet" href="static/H5/css/index3.css" />
    <script type="text/javascript" src="static/H5/js/jquery.min.js"></script>
    <script type="text/javascript" src="static/H5/js/finutil_a.js"></script>
    <script type="text/javascript" src="static/H5/js/crypto-js.js"></script>
    <script type="text/javascript">
        function getQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if(r != null) return unescape(r[2]);
            return null;
        }
        var bm = getQueryString("bm");
        var cid = getQueryString("cid");
        var channel = getQueryString("channel");
        var username = unescape(getQueryString("username"));
        var tel = getQueryString("tel")
        var birthday = getQueryString("birthday");
        var mon = getQueryString("money");
        var car = Number(getQueryString("car"));
        var house = Number(getQueryString("house"))
        var city = getQueryString("city")
        var housingFund = getQueryString("housing")
        var sex = getQueryString("sex")
    </script>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        body {
            font-family: "微软雅黑";
            color: #333;
            font-size: 14px;
            background: #f8f8f8;
        }

        a {
            text-decoration: none;
        }

        img {
            width: 100%;
            border: 0;
            vertical-align: top;
        }

        li {
            list-style: none;
        }

        #tclose{ display:block; height:321px; width:100%; top:0%; left:0;}
        #sptext{ display:block; width:90%;left:5%; top:0%; text-align:center; z-index:500; position:absolute; font-size:1.6em; line-height:2.4em; color:#fff;}
        #sptext2{ display:block; width:70%;left:15%; top:20%; text-align:center; z-index:500;font-size:1.3em; position:absolute; color:#000;}
        #sptext3{ display:block; width:72%;left:14%; top:32%; text-align:center; z-index:500; font-size:1.6em; line-height:1.5em; position:absolute; color:#118038; background:#fffde9; border-radius:15px; padding:1% 0;}

        #sptext3 abbr{ color:#d50724}
        #btnclose{ display:block; position: absolute;bottom:8%;width:63% ;margin: 0 auto;left: 0px;right: 0px;z-index:500;background:#fdc501; height:40px; line-height:40px; font-size:1.3em;font-weight:800;color:#000; text-align:center;border-radius:5px;}
        .agreebtn_close span{ display:block; width:25px; height:25px; line-height:22px; font-size:2.2em;background:#e32430; color:#fff; border-radius:50%; text-align:center;}
    </style>
</head>

<body>
<div class="warp3">

    <div class="warp">
        <script type="text/javascript" src="static/H5/js/htmlinfo.js"></script>
    </div>
    <script type="text/javascript">
//        $(function(){
//            $(".warp3 .dingdan").css("display", "none");
//            $(".zhemu").css("display", "none");
////            $(".art").hide();
//        });
        document.write(t444);
        $(".warp3 .dingdan").css("display", "none");
        $(".zhemu").css("display", "none")
//        document.write(t8);
    </script>
</div>
</body>
<script type="text/javascript">
    var u = navigator.userAgent;
    var F = new FINUtil(channel, cid);
    if(mon >= 0) {

        console.log(".con display = ");
        $(".con").show();
    } else {
        $(".art").hide();
    }
    function getBackUrl() {
        var backurl;
        console.log(!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/))
//			!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) ? backurl = 'https://jinrong.baixing.com/m/market?src=youmi_m_yksq':backurl='http://www.tongchengfs.cn/html5/xjd/landPage.html'
        var backurl = "https://jinrong.baixing.com/m/market?src=youmi_m_yksq";
//			backurl += "&mon=" + mon;
//			backurl += "&city=" + escape(city);
//			backurl += "&house=" +house;
//			backurl += "&car=" + car;
//			backurl +="&housingFund="+housingFund
        return backurl;
    }

    ygshow(housingFund, car, house, mon);
    $("#cashbtn").click(function() {
        $(".art").css("display", "none");
        $(".container").show();
        $("#progress").addClass("running");

        cachSubmit();
    });

    function cachSubmit() {
        location.href="/webview/guide/market";
//        F.appendDataSet(getSubmitData());
//        F.submitAgents();
    }
    function getSubmitData()
    {
//      var infostr = {worklong: $("#worklong").val(), enpass: $("#enpass").val()};
        var backurl = getBackUrl();
        var obj = [
            {phoneno: tel},
            {name: username},
            {money:mon},
            {sex: sex},
            {city: city},
//          {profession: $("#profession").val()},
            //{socialSecurity: $("#profession").val()},     社保
            {housingFund:housingFund },
            {birthday: birthday}, //生日
//          {income: $("#income").val()},
            {insurance:"0"},
            {housingType: house},
            {hasCar:car},
//          {creditSituation: creditSituation},
//          {paytype: $("#paytype").val()},
//          {worklong: $("#worklong").val()},
            {backUrl:backurl},
            {acceptsafety: "1"},
//          {info: JSON.stringify(infostr)}
        ];
//	      console.log(obj)
        return obj;
    }

</script>

</html>